package com.test.activiti.conf;

import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by jl on 2018/11/26 0026
 */
@Configuration
public class ProcessEngineConf {
    @Bean
    public ProcessEngineConfiguration processEngineConfiguration() {
        StandaloneProcessEngineConfiguration conf = new StandaloneProcessEngineConfiguration();
        conf.setJdbcDriver("com.mysql.jdbc.Driver");
        conf.setJdbcUrl("jdbc:mysql://localhost:3306/activiti?useUnicode=true&characterEncoding=utf8");
        conf.setJdbcUsername("root");
        conf.setJdbcPassword("123456");
        conf.setDatabaseSchemaUpdate("true");
        return conf;
    }
}
